/*******************************************************************************
* FileName : stack_test.cpp
* Comment  : ջ
* Version  : 1.0
* Author   : jemmy
* Date     : 2013-07-07
*******************************************************************************/
#include "main.h"

int main_stack()
{
	CStack<int> stack;
	stack.push(2);
	stack.push(6);
	stack.push(9);
	int num=stack.size();
	for (int i=0; i!=num; ++i)
		std::cout<<stack.pop()<<"-";
	std::cout<<std::endl;
	return 0;
}